//
//  SocketEventHandler.swift
//  QHSocketIODemo
//
//  Created by chen on 2017/5/16.
//  Copyright © 2017年 chen. All rights reserved.
//

import Foundation

struct SocketEventHandler {
    let event: String
    let id: UUID
    let callback: NormalCallback
    
    func executeCallback(with items: [Any], withAck ack: Int, withSocket socket: SocketIOClient) {
        callback(items, SocketAckEmitter(socket: socket, ackNum: ack))
    }
}
